<a href="?act=edit_category&add=1"><img src="images/add_new.gif">Thêm danh mục</img></a>
<table class="tb_table" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="tb_head">
	<td>Thứ tự</td>
    <td>Tên danh mục</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
    <td>Thao tác</td>
  </tr>
	<?php 
		$cnt = 0;
		foreach ($categories as $category) 
		{
			$cnt ++;
	?>
  		<tr class="tb_content">
			<td><?php echo $cnt ?></td>
			<td><?php echo $category->getname() ?></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
			<td><a href="?act=edit_category&category_id=<?php echo $category->getid() ?>">Sua</a>/<a href="?act=delete_category&category_id=<?php echo $category->getid()?>">Xoa</a></td>
  		</tr>
	<?php } ?>
</table>
<a href="?act=edit_category&add=1"><img src="images/add_new.gif">Thêm danh mục</img></a>